package com.joey.myStaticFactory;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class start {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("myStaticFactory.xml");
        userService obj =(userService) context.getBean("userService");
        obj.say();
    }
}
